#coding=utf8
#简单输入密码循环三次
countu=3
countp=3
uname='hanxu'
paword=111
while countu>0:
    username=raw_input('username: ')
    if username==uname:
        print 'please input you password'
        while countp>0:
            password=int(raw_input('password: '))
            if password==paword:
                 print 'welcome you bark'
                 break
            else:
                 countp=countp-1
                 print 'sorry password wrong'
        break
    else:
        countu=countu-1
